.class Lcom/waiqin365/lightapp/product/a/z;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/a/aa;

.field final synthetic b:Lcom/waiqin365/lightapp/product/a/x;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/a/x;Lcom/waiqin365/lightapp/product/a/aa;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/a/z;->a:Lcom/waiqin365/lightapp/product/a/aa;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/z;->a:Lcom/waiqin365/lightapp/product/a/aa;

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/a/aa;->e:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/jxccache/g;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->v()Ljava/lang/Boolean;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/jxccache/g;->v()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_0

    const-class v1, Lcom/waiqin365/lightapp/product/CuXiaoZuDetailActivity;

    :goto_0
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-static {v3}, Lcom/waiqin365/lightapp/product/a/x;->b(Lcom/waiqin365/lightapp/product/a/x;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-string/jumbo v3, "pdCache"

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "priceName"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isShowHistory"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->e()Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isRelInventory"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->d()Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isProductCountCanZero"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->f()Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isProductModifyPriceCanZero"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->g()Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isCanModifyPrice"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/product/a/x;->h()Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isJT"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-static {v3}, Lcom/waiqin365/lightapp/product/a/x;->c(Lcom/waiqin365/lightapp/product/a/x;)Z

    move-result v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "cmId"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-static {v3}, Lcom/waiqin365/lightapp/product/a/x;->b(Lcom/waiqin365/lightapp/product/a/x;)Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-static {v4}, Lcom/waiqin365/lightapp/product/a/x;->d(Lcom/waiqin365/lightapp/product/a/x;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/db/jxccache/f;->g(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/a;

    move-result-object v3

    invoke-virtual {v3}, Lcom/waiqin365/base/db/jxccache/a;->a()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isModify"

    const/4 v3, 0x1

    invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v3, "selectedList"

    move-object v0, v1

    check-cast v0, Ljava/io/Serializable;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/a/x;->b(Lcom/waiqin365/lightapp/product/a/x;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    const/16 v1, 0x3ea

    invoke-virtual {v0, v2, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/product/a/z;->b:Lcom/waiqin365/lightapp/product/a/x;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/a/x;->a()Ljava/lang/Class;

    move-result-object v1

    goto/16 :goto_0
.end method
